<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one
  ~ or more contributor license agreements.  See the NOTICE file
  ~ distributed with this work for additional information
  ~ regarding copyright ownership.  The ASF licenses this file
  ~ to you under the Apache License, Version 2.0 (the
  ~ "License"); you may not use this file except in compliance
  ~ with the License.  You may obtain a copy of the License at
  ~
  ~   http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing,
  ~ software distributed under the License is distributed on an
  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  ~ KIND, either express or implied.  See the License for the
  ~ specific language governing permissions and limitations
  ~ under the License.
  -->
<div>

    <div class="clear">
        <div class="formLabel-labelCell tableContainer-labelCell">Store overfull size (bytes):</div>
        <div class="tableContainer-valueCell formLabel-controlCell">
            <input data-dojo-type="dijit/form/ValidationTextBox"
                   id="editVirtualHost.storeOverfullSize"
                   data-dojo-props="
                              name: 'storeOverfullSize',
                              placeHolder: 'size in bytes',
                              required: false,
                              title: 'Enter ceiling (in bytes) at which store will begin to throttle sessions producing messages',
                              promptMessage: 'Ceiling (in bytes) at which store will begin to throttle sessions producing messages'"/>
        </div>
    </div>
    <div class="clear">
        <div class="formLabel-labelCell tableContainer-labelCell">Store underfull size (bytes):</div>
        <div class="tableContainer-valueCell formLabel-controlCell">
            <input data-dojo-type="dijit/form/ValidationTextBox"
                   id="editVirtualHost.storeUnderfullSize"
                   data-dojo-props="
                              name: 'storeUnderfullSize',
                              placeHolder: 'size in bytes',
                              required: false,
                              title: 'Enter floor (in bytes) at which store will cease to throttle sessions producing messages',
                              promptMessage: 'Floor (in bytes) at which store will cease to throttle sessions producing messages'"/>
        </div>
    </div>


    <div class="clear"></div>

    <div class="formBox clear">
        <fieldset>
            <legend>High availability durability</legend>
            <div>
                <div class="haOptionLabel">Master transaction sync policy</div>

                <span id="editVirtualHost.localTransactionSynchronizationPolicy.span">
                    <select id="editVirtualHost.localTransactionSynchronizationPolicy"
                            name="localTransactionSynchronizationPolicy"
                            data-dojo-type="dojox/form/CheckedMultiSelect">
                        <option value="SYNC">SYNC (the transaction will be written and synchronized to the disk; highest durability)</option>
                        <option value="WRITE_NO_SYNC">WRITE_NO_SYNC (the transaction will be written only; the synchronization will be performed later)</option>
                        <option value="NO_SYNC">NO_SYNC (write later; the transaction will be written and synchronized later; lowest durability)</option>
                    </select>
                </span>
                <div id="editVirtualHost.localTransactionSynchronizationPolicy.tooltip"
                     data-dojo-type="dijit/Tooltip"
                     data-dojo-props="connectId: ['editVirtualHost.localTransactionSynchronizationPolicy', 'editVirtualHost.localTransactionSynchronizationPolicy.span'],
                                          label: 'Synchronization policy applied at a node that is currently a master'">
                </div>
            </div>
            <br/>
            <div>
                <div class="haOptionLabel">Replica transaction sync policy</div>

                <span id="editVirtualHost.remoteTransactionSynchronizationPolicy.span">
                    <select id="editVirtualHost.remoteTransactionSynchronizationPolicy"
                            name="remoteTransactionSynchronizationPolicy"
                            data-dojo-type="dojox/form/CheckedMultiSelect">
                        <option value="SYNC">SYNC (the transaction will be written and synchronized to the disk; highest durability)</option>
                        <option value="WRITE_NO_SYNC">WRITE_NO_SYNC (the transaction will be written only; the synchronization will be performed later)</option>
                        <option value="NO_SYNC">NO_SYNC (write later; the transaction will be written and synchronized later; lowest durability)</option>
                    </select>
                </span>
                <div id="editVirtualHost.remoteTransactionSynchronizationPolicy.tooltip"
                     data-dojo-type="dijit/Tooltip"
                     data-dojo-props="connectId: ['editVirtualHost.remoteTransactionSynchronizationPolicy', 'editVirtualHost.remoteTransactionSynchronizationPolicy.span'],
                                          label: 'Synchronization policy applied at a node that is currently a replica'">
                </div>
            </div>
        </fieldset>
    </div>

</div>
